package com.sz.stock.model;

import java.math.BigDecimal;

public class Entrust {
    private Integer stockEntrustId;

    private Integer stockEntrustUserid;
    //操作, 卖出或买入
    private String stockEntrustOperate;

    private String stockEntrustCode;

    private String stockEntrustCompany;
    //委托价格
    private BigDecimal stockEntrustMoney;
    //可买数量
    private Integer stockEntrustAmount;
    //委托数量
    private Integer stockEntrustNum;
    //委托时间
    private String stockEntrustTime;
    //委托状态
    private String stockEntrustStatus;
    //成交数量
    private Integer stockEntrustTransnum;
    //撤销数量
    private Integer stockEntrustCancelnum;

    private String stockEntrustTradmarket;
    //股东账号
    private String stockEntrustAccount;
    //合同编号
    private String stockEntrustContractid;

    private Integer stockEntrustStockid;

    public Entrust(Integer stockEntrustId, String stockEntrustStatus, Integer stockEntrustTransnum) {
        this.stockEntrustId = stockEntrustId;
        this.stockEntrustStatus = stockEntrustStatus;
        this.stockEntrustTransnum = stockEntrustTransnum;
    }

    public Entrust(Integer stockEntrustId, BigDecimal stockEntrustMoney, String stockEntrustTime) {
        this.stockEntrustId = stockEntrustId;
        this.stockEntrustMoney = stockEntrustMoney;
        this.stockEntrustTime = stockEntrustTime;
    }

    public Entrust(Integer stockEntrustId, String stockEntrustStatus, Integer stockEntrustTransnum, Integer stockEntrustCancelnum) {
        this.stockEntrustId = stockEntrustId;
        this.stockEntrustStatus = stockEntrustStatus;
        this.stockEntrustTransnum = stockEntrustTransnum;
        this.stockEntrustCancelnum = stockEntrustCancelnum;
    }

    public Entrust(Integer stockEntrustId, Integer stockEntrustUserid, String stockEntrustOperate, String stockEntrustCode, String stockEntrustCompany, BigDecimal stockEntrustMoney, Integer stockEntrustAmount, Integer stockEntrustNum, String stockEntrustTime, String stockEntrustStatus, Integer stockEntrustTransnum, Integer stockEntrustCancelnum, String stockEntrustTradmarket, String stockEntrustAccount, String stockEntrustContractid, Integer stockEntrustStockid) {
        this.stockEntrustId = stockEntrustId;
        this.stockEntrustUserid = stockEntrustUserid;
        this.stockEntrustOperate = stockEntrustOperate;
        this.stockEntrustCode = stockEntrustCode;
        this.stockEntrustCompany = stockEntrustCompany;
        this.stockEntrustMoney = stockEntrustMoney;
        this.stockEntrustAmount = stockEntrustAmount;
        this.stockEntrustNum = stockEntrustNum;
        this.stockEntrustTime = stockEntrustTime;
        this.stockEntrustStatus = stockEntrustStatus;
        this.stockEntrustTransnum = stockEntrustTransnum;
        this.stockEntrustCancelnum = stockEntrustCancelnum;
        this.stockEntrustTradmarket = stockEntrustTradmarket;
        this.stockEntrustAccount = stockEntrustAccount;
        this.stockEntrustContractid = stockEntrustContractid;
        this.stockEntrustStockid = stockEntrustStockid;
    }

    public Entrust(Integer stockEntrustId,String stockEntrustOperate, String stockEntrustCode, String stockEntrustCompany, BigDecimal stockEntrustMoney, Integer stockEntrustNum, String stockEntrustTime, String stockEntrustStatus, Integer stockEntrustTransnum, Integer stockEntrustCancelnum, String stockEntrustAccount, String stockEntrustContractid,Integer stockEntrustUserid) {
        this.stockEntrustId = stockEntrustId;
        this.stockEntrustOperate = stockEntrustOperate;
        this.stockEntrustCode = stockEntrustCode;
        this.stockEntrustCompany = stockEntrustCompany;
        this.stockEntrustMoney = stockEntrustMoney;
        this.stockEntrustNum = stockEntrustNum;
        this.stockEntrustTime = stockEntrustTime;
        this.stockEntrustStatus = stockEntrustStatus;
        this.stockEntrustTransnum = stockEntrustTransnum;
        this.stockEntrustCancelnum = stockEntrustCancelnum;
        this.stockEntrustAccount = stockEntrustAccount;
        this.stockEntrustContractid = stockEntrustContractid;
        this.stockEntrustUserid = stockEntrustUserid;
    }

    public Entrust(Integer stockEntrustUserid, String stockEntrustOperate, String stockEntrustCode, String stockEntrustCompany, BigDecimal stockEntrustMoney,Integer stockEntrustAmount, Integer stockEntrustNum, String stockEntrustTime, String stockEntrustStatus, Integer stockEntrustTransnum, Integer stockEntrustCancelnum, String stockEntrustAccount, String stockEntrustContractid) {
        this.stockEntrustUserid = stockEntrustUserid;
        this.stockEntrustOperate = stockEntrustOperate;
        this.stockEntrustCode = stockEntrustCode;
        this.stockEntrustCompany = stockEntrustCompany;
        this.stockEntrustMoney = stockEntrustMoney;
        this.stockEntrustAmount = stockEntrustAmount;
        this.stockEntrustNum = stockEntrustNum;
        this.stockEntrustTime = stockEntrustTime;
        this.stockEntrustStatus = stockEntrustStatus;
        this.stockEntrustTransnum = stockEntrustTransnum;
        this.stockEntrustCancelnum = stockEntrustCancelnum;
        this.stockEntrustAccount = stockEntrustAccount;
        this.stockEntrustContractid = stockEntrustContractid;
    }

    public Entrust() {
        super();
    }

    public Integer getStockEntrustId() {
        return stockEntrustId;
    }

    public void setStockEntrustId(Integer stockEntrustId) {
        this.stockEntrustId = stockEntrustId;
    }

    public Integer getStockEntrustUserid() {
        return stockEntrustUserid;
    }

    public void setStockEntrustUserid(Integer stockEntrustUserid) {
        this.stockEntrustUserid = stockEntrustUserid;
    }

    public String getStockEntrustOperate() {
        return stockEntrustOperate;
    }

    public void setStockEntrustOperate(String stockEntrustOperate) {
        this.stockEntrustOperate = stockEntrustOperate == null ? null : stockEntrustOperate.trim();
    }

    public String getStockEntrustCode() {
        return stockEntrustCode;
    }

    public void setStockEntrustCode(String stockEntrustCode) {
        this.stockEntrustCode = stockEntrustCode == null ? null : stockEntrustCode.trim();
    }

    public String getStockEntrustCompany() {
        return stockEntrustCompany;
    }

    public void setStockEntrustCompany(String stockEntrustCompany) {
        this.stockEntrustCompany = stockEntrustCompany == null ? null : stockEntrustCompany.trim();
    }

    public BigDecimal getStockEntrustMoney() {
        return stockEntrustMoney;
    }

    public void setStockEntrustMoney(BigDecimal stockEntrustMoney) {
        this.stockEntrustMoney = stockEntrustMoney;
    }

    public Integer getStockEntrustAmount() {
        return stockEntrustAmount;
    }

    public void setStockEntrustAmount(Integer stockEntrustAmount) {
        this.stockEntrustAmount = stockEntrustAmount;
    }

    public Integer getStockEntrustNum() {
        return stockEntrustNum;
    }

    public void setStockEntrustNum(Integer stockEntrustNum) {
        this.stockEntrustNum = stockEntrustNum;
    }

    public String getStockEntrustTime() {
        return stockEntrustTime;
    }

    public void setStockEntrustTime(String stockEntrustTime) {
        this.stockEntrustTime = stockEntrustTime == null ? null : stockEntrustTime.trim();
    }

    public String getStockEntrustStatus() {
        return stockEntrustStatus;
    }

    public void setStockEntrustStatus(String stockEntrustStatus) {
        this.stockEntrustStatus = stockEntrustStatus == null ? null : stockEntrustStatus.trim();
    }

    public Integer getStockEntrustTransnum() {
        return stockEntrustTransnum;
    }

    public void setStockEntrustTransnum(Integer stockEntrustTransnum) {
        this.stockEntrustTransnum = stockEntrustTransnum;
    }

    public Integer getStockEntrustCancelnum() {
        return stockEntrustCancelnum;
    }

    public void setStockEntrustCancelnum(Integer stockEntrustCancelnum) {
        this.stockEntrustCancelnum = stockEntrustCancelnum;
    }

    public String getStockEntrustTradmarket() {
        return stockEntrustTradmarket;
    }

    public void setStockEntrustTradmarket(String stockEntrustTradmarket) {
        this.stockEntrustTradmarket = stockEntrustTradmarket == null ? null : stockEntrustTradmarket.trim();
    }

    public String getStockEntrustAccount() {
        return stockEntrustAccount;
    }

    public void setStockEntrustAccount(String stockEntrustAccount) {
        this.stockEntrustAccount = stockEntrustAccount == null ? null : stockEntrustAccount.trim();
    }

    public String getStockEntrustContractid() {
        return stockEntrustContractid;
    }

    public void setStockEntrustContractid(String stockEntrustContractid) {
        this.stockEntrustContractid = stockEntrustContractid == null ? null : stockEntrustContractid.trim();
    }

    public Integer getStockEntrustStockid() {
        return stockEntrustStockid;
    }

    public void setStockEntrustStockid(Integer stockEntrustStockid) {
        this.stockEntrustStockid = stockEntrustStockid;
    }

    @Override
    public String toString() {
        return "Entrust{" +
                "stockEntrustId=" + stockEntrustId +
                ", stockEntrustUserid=" + stockEntrustUserid +
                ", stockEntrustOperate='" + stockEntrustOperate + '\'' +
                ", stockEntrustCode='" + stockEntrustCode + '\'' +
                ", stockEntrustCompany='" + stockEntrustCompany + '\'' +
                ", stockEntrustMoney=" + stockEntrustMoney +
                ", stockEntrustAmount=" + stockEntrustAmount +
                ", stockEntrustNum=" + stockEntrustNum +
                ", stockEntrustTime='" + stockEntrustTime + '\'' +
                ", stockEntrustStatus='" + stockEntrustStatus + '\'' +
                ", stockEntrustTransnum=" + stockEntrustTransnum +
                ", stockEntrustCancelnum=" + stockEntrustCancelnum +
                ", stockEntrustTradmarket='" + stockEntrustTradmarket + '\'' +
                ", stockEntrustAccount='" + stockEntrustAccount + '\'' +
                ", stockEntrustContractid='" + stockEntrustContractid + '\'' +
                ", stockEntrustStockid=" + stockEntrustStockid +
                '}';
    }
}
